<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org" >

  <head>
    <title> Spring 기반 게시판 </title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" media="all" href="../../css/bbs.css" th:href="@{/css/bbs.css}"/>
  </head>

  <body> 
    <div>
      <div style="text-align: right;"> 
			<a href="index.html"><img src="../../img/home.png"/>홈</a> 
			<a href="bbsUserLogout.con">로그아웃</a> 
      </div> 
      <img src="../../img/bbs_logo.png" th:src="@{/img/bbs_logo.png}" alt="게시판 로고" title="게시판 로고" />
    </div>   
    <div>
    
      <h2 th:text="#{bbs.title}">Spring 기반 게시판</h2>

      <form action="" method="POST">
    
        <fieldset> 
          <legend>로그인 화면</legend>

          <ul class="errorlist">
            <li th:text="${ svrMsg }">메시지</li>
			<li th:if="${ errMsg != null }" th:text="${ errMsg }">에러</li>
          </ul> 

          <div>
            <label for="userName">
              <span>아이디</span> 
            </label>
            <input type="text" name="userName" th:value="${ userName }" value="" />
          </div>
          <div>
            <label for="isAdmin">패스워드</label>
            <input type="password" name="passwd" value="" />
          </div> 
		   <div>
            <label for="isAdmin">관리자</label>
            <input type="checkbox" name="isAdmin" th:checked="${ isAdmin }" th:value="${ isAdmin }" value="" onclick="this.value = this.checked" />
          </div> 
		  <div>
			<br/>
		  </div>
		  <div>
			<label for="login">로그인</label>
			<button type="submit" name="login" >로그인</button>
		  </div> 
        
        </fieldset>
          
      </form>
        
    </div>

  </body>
</html>